// CircualProgress.h: interface for the CCircualProgress class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_CIRCUALPROGRESS_H__E0DD43E5_781F_4A7D_BF7E_CCE35EB9F568__INCLUDED_)
#define AFX_CIRCUALPROGRESS_H__E0DD43E5_781F_4A7D_BF7E_CCE35EB9F568__INCLUDED_

#include <juce.h>
#define SLICE 0.0628

#if _MSC_VER > 1000
#pragma once
#endif

class CircularProgress  : public Component, public Timer
{
	public:
		CircularProgress(double &_prog, Colour _fColour = Colours::red);
		~CircularProgress();
		void paint(Graphics &g);
		void resized();
		enum ColourIds
		{
			ProgressColour,
			FontColour,
			BackgroundColour
		};

		void colourChanged();
		void timerCallback();

	private:
		double &progress;
		double internalProgress;
		double oldProgress;
		Colour fColour;
		Colour fontFColour;
		Colour bColour;
};

#endif
